
import { rbacMenuAdd, rbacMenuDelete, rbacMenuUpdate, rbacMenuQueryAll } from '@/api/menuController'

const state = {}
const mutations = {}
const actions = {
  // 新增菜单
  async rbacMenuAdd(...rest) {
    const result = await rbacMenuAdd(rest[1])
    return result
  },
  // 删除菜单
  async rbacMenuDelete(...rest) {
    const result = await rbacMenuDelete(rest[1])
    return result
  },
  // 更新菜单
  async rbacMenuUpdate(...rest) {
    const result = await rbacMenuUpdate(rest[1])
    return result
  },
  // 查询全部菜单
  async rbacMenuQueryAll(...rest) {
    const result = await rbacMenuQueryAll(rest[1])
    return result
  }

}
const getters = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
